﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;

namespace DiscoveryLogic.Workflows.Monitor.Avalon.PatientHelper
{
    public class VideoAnnotationWindowCommand : ICommand
    {
        public VideoAnnotationWindowCommand(int appCommandId)
        {
            _appCommandId = appCommandId;
        }

        public int AppCommandId
        {
            get { return _appCommandId; }
        }

        public bool IsEnabled { get { return true; } }

        public void Execute(object o)
        {
            string param = o as string;

            if ((param != null) && (param == "XRay"))
            {
                VideoAnnotationWindow videoAnnotationWindow = new VideoAnnotationWindow();
                videoAnnotationWindow.Show();
            }

        }

        public bool CanExecute(object o)
        {
            return true;
        }

        public event EventHandler CanExecuteChanged;

        private int _appCommandId;
    }
}
